import Mock from "mockjs";
//出售中商品列表

Mock.mock("/getBargainList", () => {
  return Mock.mock({
    code: 20000,
    "data|20": [
      {
        "id|+13": 1, //id
        img: "@image(50x50,@color)", //图
        title: "@ctitle(7,20)", //名称
        "price|1-999": 1 + 0.0, //砍价价格
        "lowestPrice|1-500": 1, //最低价
        "joinNum|0-20": 1, //参与人数
        "helpNum|0-20": 1, //帮忙砍价人数
        "successNum|0-10": 1, //砍价成功人数
        "num|0-100": 1, //限量,
        "residueNum|0-100": 1, //限量剩余
        time: "@datetime", //结束时间
        "flag|1": [true, false]
        // "type|1": ["开启", "关闭"]
      }
    ]
  });
});
